package xyz.xtt.asset.service;

import com.baomidou.mybatisplus.extension.service.IService;

import xyz.xtt.asset.entity.TblAssetUserLog;
import xyz.xtt.asset.request.OperateDownRequest;
import xyz.xtt.asset.request.OperateUpRequest;

/**
 * <p>
 * 资产上下架操作表 服务类
 * </p>
 *
 * @author author
 * @since 2025-02-18
 */
public interface ITblAssetUserLogService extends IService<TblAssetUserLog> {
	/**
	 * 上次最后设置
	 * 
	 * @param uid
	 * @param assetId
	 * @return
	 */
	TblAssetUserLog lastConfig(Long assetId);

	/**
	 * @param uid
	 * @param operateUpRequest
	 * @return
	 */
	Boolean putOn(String uid, OperateUpRequest operateUpRequest);

	/**
	 * @param uid
	 * @param assetId
	 * @return
	 */
	TblAssetUserLog lastConfigWithCache(Long assetId);

	/**
	 * @param uid
	 * @param operateDownRequest
	 * @return
	 */
	Boolean putOff(String uid, OperateDownRequest operateDownRequest);
}
